import requset from '@/utils/request'

export const addCart = (goodsId, goodsNum, goodsSkuId) => {
  return requset.post('/cart/add', {
    goodsId, goodsNum, goodsSkuId
  })
}
export const getCartList = () => {
  return requset.get('/cart/list')
}
export const changeCount = (goodsId, goodsNum, goodsSkuId) => {
  return requset.post('/cart/update', {
    goodsId, goodsNum, goodsSkuId
  })
}
export const delSelect = (cartid) => {
  return requset.post('/cart/clear', {
    cartIds: cartid
  })
}